package com.iamk.tool;

import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

@SuppressWarnings("serial")
public class MainFrame extends JPanel implements ActionListener {

	JPanel mPanelData;
	
	public MainFrame() {
		super(new GridLayout(1, 1));
		JTabbedPane tab = new JTabbedPane();
		tab.setPreferredSize(new Dimension(1280, 1000));

		JComponent panel1 = new ManualAnnotation();
        tab.addTab("Manual Annotation", panel1);
        
        JComponent panel2 = new ImageRetrieval();
        tab.addTab("Image Retrieval", panel2);
        
        JComponent panel3 = new OriganizationAlbum();
        tab.addTab("Origanization Album", panel3);
        
        JComponent panel4 = new AutoAnnotation();
        tab.addTab("Auto Annotation", panel4);
        
		//Add the tabbed pane to this panel.
        tab.setSelectedIndex(1);
        add(tab);
        setSize(new Dimension(1280,800));
        //The following line enables to use scrolling tabs.
        tab.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		
	}
}
